package kr.makjang.lib;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Toast;

public class MainActivity extends Activity {
    /** Called when the activity is first created. */
    
    private SlideButton sb;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.slide_button);
        sb = (SlideButton) findViewById(R.id.slideButton);
        sb.setOnCheckChangedListener(new SlideButton.OnCheckChangedListener()
        {
            @Override
            public void onCheckChanged(View view, boolean isChecked)
            {
                Toast.makeText(MainActivity.this, Boolean.toString(isChecked), Toast.LENGTH_LONG).show();
            }
        });
    }
}
